package com.yjs.app.trade.service.service.business.order;

import java.util.List;
import java.util.Map;

import com.yjs.app.trade.entity.base.util.Page;
import com.yjs.app.trade.entity.bean.BacthInfo;
import com.yjs.app.trade.service.service.util.bean.OrderDetailInfo;

import net.sf.json.JSONObject;

/**
 * 订单业务层接口
 * 
 * @author Administrator
 *
 */
public interface OrderService {

	
	/**
	 * 查询订单批次号信息
	 * @param list
	 * @return
	 */
	public List<BacthInfo> findBacthsByOrderIds(List<String> list);
	
	/**
	 * 查询库存
	 */
	public List<Map<String, Object>> findShareNumberByDispatchIdAndDrugCode(List<String> contractIds,List<String> drugCodes);
	
	/**
	 * 查询待收货订单信息
	 */
	public Page<?> findOrderByBacthNo(JSONObject jsonObject, String memberId,Page<OrderDetailInfo> page, OrderDetailInfo orderDetailInfo);
	/**
	 * 根据订单编号查询订单memberid
	 * @param orderNumber
	 * @return
	 */
	public Map<String,Object> findOrderMemberId(String orderNumber);
	
	/**
	 * 根据搜索条件查询订单统计信息
	 *
	 * @param orderNumber
	 * @return
	 */
	public Map<String,Object> countOrderInfoByOrderInfoId(Map<String, Object> map);
	/**
	 * 根据订单号查询订单详情
	 * @param orderNo
	 * @return
	 */
	public List<Map<String, String>> findOrderNumber(String orderNo);
	
	/**
	 * 查询配送方今天订单信息
	 */
	public Map<String, Object> findDispatchTodayTotalOrderInfo(String dispatchId);
	
	/**
	 * 查询卖方今日订单信息
	 * @param sellerId
	 * @return
	 */
	public Map<String, Object> findSellerTodayTotalOrderInfo(String sellerId);
	
	/**
	 * 查询卖方今日订单信息
	 * @param sellerId
	 * @return
	 */
	public Map<String, Object> findSellerPassportTodayTotalOrderInfo(String sellerId, String passportId);
	
	/**
	 * 查询配送方今天订单信息
	 */
	public Map<String, Object> findDispatchPassportTodayTotalOrderInfo(String dispatchId, String passportId);
	
	/**
	 * 根据订单编号查询 订单ID
	 * @param orderDetailNo 订单编号
	 * @return
	 */
	public String findOrderDetailInfoByOrderDetailNo(String orderDetailNo);
}
